package com.wwtech.epp.ui.adapter.work;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.wwtech.epp.R;
import com.wwtech.epp.entity.AttachmentBean;
import com.wwtech.epp.entity.BaseBack;

import java.util.List;

/**
 * Created by huzhipeng on 2017/12/8.
 */

public class AttachmentAdapter extends BaseQuickAdapter<AttachmentBean, BaseViewHolder> {

    public AttachmentAdapter(@Nullable List<AttachmentBean> data) {
        super(R.layout.item_attachment, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, AttachmentBean bean) {
        baseViewHolder.addOnClickListener(R.id.iv_opreate);
        baseViewHolder.setText(R.id.name, bean.getName());
//        switch (bean.getState()) {
//            case select:
//                baseViewHolder.setText(R.id.iv_opreate, "未上传");
//                break;
//            case loading:
//                baseViewHolder.setText(R.id.iv_opreate, "上传中...");
//                break;
//            case loaded:
//                baseViewHolder.setText(R.id.iv_opreate, "已上传");
//                break;
//            default:
//                break;
//        }
    }
}
